package com.scagoodfeign.api;

import com.scagoodfeign.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author yan
 * @date 2025/8/21
 */
@RestController
@RequestMapping(value = "/api/goods",produces = "application/json")
public class GoodApi {

    private BrandService brandService;
    @Autowired
    public void setBrandService(BrandService brandService) {
        this.brandService = brandService;
    }

    @SuppressWarnings("all")
    @GetMapping
    public ResponseEntity<Map> findById(){
        ResponseEntity<Map> responseEntity = brandService.findBrandById(30);
        return responseEntity;
    }
}
